﻿<UserControl x:Class="Supremacy.Updater.UpdaterOptionsPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:local="clr-namespace:Supremacy.Updater"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:s="http://schemas.startreksupremacy.com/xaml/core"
             xmlns:scc="http://schemas.startreksupremacy.com/xaml/presentation">
  <DockPanel>
    <CheckBox DockPanel.Dock="Top"
              Content="{s:StringResource SETTINGS_CHECK_FOR_UPDATES_ON_STARTUP}"
              IsChecked="{Binding Source={x:Static scc:ClientSettings.Current}, Path=(local:UpdaterSettings.CheckForUpdatesOnStartup), Mode=TwoWay}" />
    <DockPanel DockPanel.Dock="Top"
               Margin="0,12,0,0"
               MinWidth="240"
               HorizontalAlignment="Center"
               VerticalAlignment="Top">
      <Button DockPanel.Dock="Top"
              Content="{s:StringResource SETTINGS_CHECK_FOR_UPDATES_NOW}"
              Command="{x:Static local:UpdaterOptionsPage.CheckForUpdatesCommand}"
              Style="{DynamicResource LCARS_SimpleButtonStyle}" />
      <Button DockPanel.Dock="Top"
              Content="{s:StringResource SETTINGS_CLEAR_UPDATER_REGISTRY}"
              Command="{x:Static local:UpdaterOptionsPage.ClearUpdaterRegistryCommand}"
              Margin="0,6,0,0"
              Style="{DynamicResource LCARS_SimpleButtonStyle}" />
    </DockPanel>
  </DockPanel>
</UserControl>
